package com.example.flutter_card_plugin.utils;

import java.lang.reflect.Method;

/**
 * 设备工具类
 */

public class DeviceUtils {


    /*
     *获取序列号
     */
    public static String getSerialNumber() {
        String serial = null;
        try {
            Class<?> c = Class.forName("android.os.SystemProperties");
            Method get = c.getMethod("get", String.class);
            serial = (String) get.invoke(c, "ro.serialno");
        } catch (Exception ignored) {

        }
        return serial;

    }
}
